class CreateHolidays < ActiveRecord::Migration
  def self.up
    create_table :holidays do |t|
      t.references :branch_office
      t.string :reason
      t.date :holiday_date

      t.timestamps
    end
    add_index :holidays, [:branch_office_id]
  end

  def self.down
    drop_table :holidays
  end
end
